package com.baiyun.yunpan.service.impl;

import com.baiyun.yunpan.dao.ShareDao;
import com.baiyun.yunpan.entity.Share;
import com.baiyun.yunpan.service.ShareService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author Sam
 * @date 2021/5/25 12:04
 */
@Service
public class ShareServiceImpl implements ShareService {

    @Autowired
    private ShareDao shareDao;
    @Override
    public void addShare(Share share) {
        shareDao.addShare(share);
    }

    @Override
    public Share getShare(int shareid) {
        return shareDao.getShare(shareid);
    }

    @Override
    public int getId() {
        return shareDao.getId();
    }

    @Override
    public void delete(int shareid) {
        shareDao.delete(shareid);
    }

    @Override
    public void uodate(Share share) {
        shareDao.uodate(share);
    }
}
